package com.br.semperparata.rpb;

import java.awt.AWTException;
import java.awt.SystemTray;

import javax.swing.ImageIcon;
import javax.swing.UIManager;

public class Main {

	public static void main(String[] args) {
		try {
			UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        } catch (Exception e) {
            e.printStackTrace();
        }

		if (SystemTray.isSupported()) {
			final RPTray trayIcon = new RPTray(new ImageIcon("images\\ABC_Bororos_logo.png", "Tray Icon").getImage());
			try {
	        	SystemTray.getSystemTray().add(trayIcon);
	        } catch (AWTException e) {
	            System.out.println("TrayIcon could not be added.");
	        }
		}
        
	}

}
